package cn.edu.zut.model;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@Component
@Scope(value = "prototype")
public class BookType {

    private int id;//图书种类id
    private String typename;//图书类型

    public BookType() {
    }

    public BookType(int id, String typename) {
        this.id = id;
        this.typename = typename;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTypename() {
        return typename;
    }

    public void setTypename(String typename) {
        this.typename = typename;
    }

    @Override
    public String toString() {
        return "BookType{" +
                "id=" + id +
                ", typename='" + typename + '\'' +
                '}';
    }
}

